package stocc.subject;

import java.util.ArrayList;
import java.util.List;

import stocc.subject.settings.ConversionSettings;

/**
 * Represents a subject
 *
 */
public class Subject {
	/**
	 * The name of the subject;
	 */
	String name;
	
	/**
	 * The views contained in this subject
	 */
	List<View> views;
	
	/**
	 * Conversion settings for all contained views
	 */
	ConversionSettings settings;
	
	/**
	 * Constructor
	 * @param name The name of the subject
	 */
	public Subject(String name){
		this.name = name;
		views = new ArrayList<View>();
	}
	
	/**
	 * @return The views associated with this subject 
	 */
	public List<View> getViews(){
		return views;
	}
	
	/**
	 * Adds a view to this subject
	 * @param view The view to be added.
	 */
	public void addView(View view){
		views.add(view);
	}
	
	public String getName(){
		return name;
	}

	public ConversionSettings getSettings() {
		return settings;
	}

	public void setSettings(ConversionSettings settings) {
		this.settings = settings;
	}
}
